package ${package.Controller};

import org.springframework.web.bind.annotation.RequestMapping;
import io.swagger.v3.oas.annotations.tags.Tag;
import ${package.Entity}.${table.entityName};
import ${package.Service}.${table.serviceName};
import ${reqPkg}.${table.entityName?replace('Entity','')}Req;
<#if restControllerStyle>
import org.springframework.web.bind.annotation.RestController;
<#else>
import org.springframework.stereotype.Controller;
</#if>
<#if superControllerClassPackage??>
import ${superControllerClassPackage};
</#if>

/**
* <p>
    * ${table.comment!} 前端控制器
    * </p>
*
* @author ${author}
* @since ${date}
*/
<#if restControllerStyle>
@Tag(name="${table.comment!}")
@RestController
<#else>
@Controller
</#if>
@RequestMapping("<#if package.ModuleName?? && package.ModuleName != "">/${package.ModuleName}</#if>/<#if controllerMappingHyphenStyle>${controllerMappingHyphen}<#else>${table.entityPath}</#if>")
<#if kotlin>
class ${table.controllerName}<#if superControllerClass??> : ${superControllerClass}()</#if>
<#else>
    <#if superControllerClass??>
public class ${table.controllerName}  extends ${superControllerClass}<${table.entityName?replace('Entity','Req')}, ${table.entityName}, ${table.serviceName}> {
    <#else>
public class ${table.controllerName}  {
    </#if>
}
</#if>
